package com.lb.jwitter;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import org.hibernate.annotations.ForeignKey;

@Entity
@Table (name="tbl_QLDTTXA_LopMonHoc_HocVien")
public class Tbl_QLDTTXA_LopMonHoc_HocVien implements Serializable {
   private static final long serialVersionUID = -1989579066723007050L;

   private Long id;
   private Tbl_QLDTTXA_HocVien hocVienId = null;
   private Tbl_QLDTTXA_LopMonHoc lopMonHocId = null;

   private Tbl_QLDTTXA_DM_Nhom nhomId = null;
   private Double diemCK;
   private Double diemGK;
   private Double diemTH;
   private Double tongdiem;
   private Integer trangThai;

   @Id
   @GeneratedValue
   public Long getId() {
	    return id;
   }
   public void setId(Long id) {
	    this.id= id;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="hocVienId")
   @ForeignKey(name="FK_tbl_QLDTTXA_HocVien_tbl_QLDTTXA_LopMonHoc_HocVien")
   public Tbl_QLDTTXA_HocVien getHocVienId() {
	    return hocVienId;
   }
   public void setHocVienId(Tbl_QLDTTXA_HocVien hocVienId) {
	    this.hocVienId=hocVienId;
   }

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="lopMonHocId")
   @ForeignKey(name="FK_tbl_QLDTTXA_LopMonHoc_tbl_QLDTTXA_LopMonHoc_HocVien")
   public Tbl_QLDTTXA_LopMonHoc getLopMonHocId() {
	    return lopMonHocId;
   }
   public void setLopMonHocId(Tbl_QLDTTXA_LopMonHoc lopMonHocId) {
	    this.lopMonHocId=lopMonHocId;
   }

   public Double getDiemCK() {
   	return diemCK;
   }
   public void setDiemCK(Double diemCK) {
   	this.diemCK= diemCK;
   }

   public Double getDiemGK() {
   	return diemGK;
   }
   public void setDiemGK(Double diemGK) {
   	this.diemGK= diemGK;
   }

   public Double getDiemTH() {
   	return diemTH;
   }
   public void setDiemTH(Double diemTH) {
   	this.diemTH= diemTH;
   }

   public Double getTongdiem() {
   	return tongdiem;
   }
   public void setTongdiem(Double tongdiem) {
   	this.tongdiem= tongdiem;
   }

   public Integer getTrangThai() {
   	return trangThai;
   }
   public void setTrangThai(Integer trangThai) {
   	this.trangThai= trangThai;
   }
   

   @ManyToOne(fetch=FetchType.EAGER)
   @JoinColumn(name="nhomId")
   @ForeignKey(name="FK_tbl_QLDTTXA_DM_Nhom_tbl_QLDTTXA_LopMonHoc")
   public Tbl_QLDTTXA_DM_Nhom getNhomId() {
   	return nhomId;
   }
   public void setNhomId(Tbl_QLDTTXA_DM_Nhom nhomId) {
   	this.nhomId = nhomId;
   }
}//endClass 

